package patterns.actions.mediator;

public abstract class Colleague {
	private Mediator mediator;

	Colleague(Mediator m){
		this.setMediator(m);
	}

	public Mediator getMediator() {
		return mediator;
	}

	public void setMediator(Mediator mediator) {
		this.mediator = mediator;
	}
	
	public abstract void action();
	
	public void changed(){
		this.mediator.colleagueChanged(this);
	}
}
